package com.tedu.excelinportdamo.common.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    // 自定义状态码 文件不为 excel文件, 文件为空,未知错误
    SUCCESS(20000,"导入成功"),
    FILE_NOT_EXCEL(40001,"文件不是excel文件"),
    FILE_IS_NULL(40002,"文件为空"),
    UNKNOWN_ERROR(50000,"未知错误"),
    FILE_CANNOT_IMPORT(40003,"文件无法导入"),
    VALIDATE_ERROR(40004, "数据验证失败");


    private Integer status;
    private String message;
}
